package com.csi.jf.crucible.api.sonar;

public class SonarSample {

    public static void sample() {
        SonarApiUtil apiUtil = new SonarApiUtil();

        // 插入用户
        // apiUtil.InsertUser("fenghaibing@chinasofti.com", "1234", "任弘");
        // 插入用户项目权限
        apiUtil.insertUserPermission("user,codeviewer,issueadmin",
                "fenghaibing@chinasofti.com", "my:ws");
        // 插入用户全局权限
        apiUtil.insertUserPermission("scan,shareDashboard",
                "fenghaibing@chinasofti.com", null);
        // 移除用户项目权限
        // apiUtil.RemoveUserPermission("user,codeviewer,issueadmin",
        // "fenghaibing@chinasofti.com", "my:ws");
        // 移除用户全局权限
        // apiUtil.RemoveUserPermission("scan,shareDashboard",
        // "fenghaibing@chinasofti.com",null);
        // 删除用户
        // apiUtil.DeleteUser("fenghaibing@chinasofti.com");
    }

    public static void main(String args[]) {
        sample();
    }
}
